﻿<UserControl x:Class="UsingBxf.Welcome"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:my="clr-namespace:UsingBxf.ViewModels"
             d:DesignHeight="300" d:DesignWidth="502" xmlns:bxf="http://schemas.lhotka.net/1.0.0/bxf">
  <UserControl.Resources>
    <CollectionViewSource x:Key="welcomeViewModelViewSource" d:DesignSource="{d:DesignInstance my:WelcomeViewModel, CreateList=True}" />
  </UserControl.Resources>
  <Grid DataContext="{Binding Source={StaticResource welcomeViewModelViewSource}, Path=/}">
    <StackPanel VerticalAlignment="Center">
      <Border CornerRadius="15" BorderThickness="2" BorderBrush="Coral" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="3">
        <TextBlock Text="Welcome to the Bxf sample app!" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" />
      </Border>
      <Button Margin="5" Content="Edit customer" Name="EditButton" HorizontalAlignment="Center" FontSize="16" />
      <bxf:TriggerAction Height="0" Name="triggerAction1" Width="0" TargetControl="{Binding ElementName=EditButton}" MethodName="EditCustomer" />
    </StackPanel>
  </Grid>
</UserControl>
